package demo;

import cn.hutool.core.io.IoUtil;
import top.lingkang.finalgateway.config.GatewayConfig;
import top.lingkang.finalgateway.utils.ConfigUtils;

/**
 * @author lingkang
 * Created by 2024/4/29
 */
public class Demo21 {
    public static void main(String[] args) throws Exception {
        String xml = IoUtil.readUtf8(Demo21.class.getClassLoader().getResourceAsStream("config.xml"));
        GatewayConfig config = ConfigUtils.loadXML(xml);
        System.out.println(config);
    }
}
